package com.example.other.controller;

import com.example.authority.common.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ReportController extends BaseController {


    @GetMapping("/report")
    public Result getReportByOrderId(@RequestParam Integer orderid) {
        try {
            return Result.succ(checkitemdetailedService.getReportByOrderId(orderid));
        } catch (Exception e) {
            return Result.fail(e.getMessage());
        }
    }
}
